<?php

$redis = new Redis();
 
$redis->connect('127.0.0.1',6379);
 
$password = '123456';
 
$redis->auth($password);
 
//list类型出队操作
$value = $redis->lpop('mylist');
//获取 剩余的
$range = $redis->lRange('mylist', 0, -1);
if($value){
 
 echo "出队的值".$value;
 echo "<br>剩余的队列值还有".join(',',$range);
}else{
 
  echo "出队完成";
 
}
 
?>